import http from './http'
export default{
    login(params){           //登陆
        return http.post('/login',params)
    },
    page(params){           //机构管理列表
        return http.post('/sys/org/page',params)
    },
    listSimple(params){           //机构管理列表2
        return http.get('/sys/org/list/simple',{params})
    },
    examineePage(params){           //考生管理列表
        return http.post('/sys/examinee/page',params)
    },
    examineeRoomPage(params){           //考场管理列表
        return http.post('/sys/examination_room/page',params)
    },
    examineeRoomData(params){           //添加考场
        return http.post('/sys/examination_room/data',params)
    },
    examineeRoomDataId(id){           //查询单个考场
        return http.get(`/sys/examination_room/data/${id}`,'')
    },
    examineeRoomDeleteDataId(id){           //删除考场
        return http.delete(`/sys/examination_room/data/${id}`,'')
    },
    subjects(params){           //科目列表
        return http.post(`/sys/subjects/page`,params)
    },
    subjectsData(params){           //添加科目
        return http.post(`/sys/subjects/data`,params)
    },
    subjectsDataId(id){           //查询单个科目
        return http.get(`/sys/subjects/data/${id}`,'')
    },
    subjectsDeleteDataId(id){           //删除科目
        return http.delete(`/sys/subjects/data/${id}`,'')
    },
    subjectsLevelPage(params){           //科目等级列表
        return http.post(`/sys/subjects/level/page`,params)
    },
    subjectsLevelData(params){           //添加科目等级
        return http.post(`/sys/subjects/level/data`,params)
    },
    subjectsLevelDataId(id){           //添加科目等级
        return http.get(`/sys/subjects/level/data/${id}`,'')
    },
    subjectsDeleteLevelDataId(id){           //删除科目等级
        return http.delete(`/sys/subjects/level/data/${id}`,'')
    },
    subjectsLevelDiscounts(id){           //查询单个科目等级
        return http.get(`/sys/subjects/level/discounts?subjectsLevelId=${id}`,'')
    },
    selectMembers(id){           //获取单个会员信息
        return http.get(`/sys/vip/coupon/data/${id}`,'')
    },
    updateMembers(parmes){      // 更新会员信息
        return http.post(`/sys/vip/coupon/data`,parmes)
    },
    examinationPage(params){           //考试管理列表
        return http.post(`/sys/examination/page`,params)
    },
    examinationData(params){           //添加考试
        return http.post(`/sys/examination/data`,params)
    },
    selectExaminationData(id){           //获取单条考试管理信息详情
        return http.get(`/sys/examination/data/${id}`,'')
    },
    examinationDelete(id){           //删除考试管理（单条）数据
        return http.delete(`/sys/examination/data/${id}`,'')
    },
    governmentBh(params){           //机构驳回
        return http.get(`/sys/org/audit`,{params})
    },
    sigupPage(params){           //报名管理列表
        return http.post('/sys/order/grade/page',params)
    },
    orderAudit(params){           //报名管理审核
        return http.get('/sys/order/audit',{params})
    },
    orderDataId(id){           // 获取单条报名信息记录
        return http.get(`/sys/order/data/${id}`,'')
    },
    orderPost(parmes){           // 输入快递单号
        return http.get(`/sys/order/post?id=${parmes.id}&expressNumber=${parmes.expressNumber}`,'')
    },
    uploadImg(parmes){           // 上传图片
        return http.post(`/base/file/upload`,parmes)
    },
    uploadCertificate(parmes){    // 上传凭证
        return http.get(`/sys/order/certificate?id=${parmes.id}&certificateUrl=${parmes.certificateUrl}`,'')
    },
    delayedPage(params){        // 缓考列表
        return http.post(`/sys/delayed/page`,params)
    },
    listRoom(){        // 待分配考场的考试列表
        return http.get(`/sys/examination/list/room`,'')
    },
    allotRoomList(params){        // 允许分配考场的考生列表
        return http.post(`/sys/order/allot_room_list`,params)
    },
    xzModification(parmes){    // 上传凭证
        return http.get(`/sys/order/modification?id=${parmes.id}&organizationId=${parmes.organizationId}&subjectsId=${parmes.subjectsId}&subjectsLevelId=${parmes.subjectsLevelId}`,'')
    },
    delayedId(id){      //  缓考查询单个数据
        return http.get(`/sys/delayed/data/${id}`,'')
    },
    delayedAudit(parmes){      //  缓考审核
        return http.get(`/sys/delayed/audit?id=${parmes.id}&reason=${parmes.reason}&reject=${parmes.reject}`,'')
    },
    examinationRoomAll(){      //  考场列表
        return http.get(`/sys/examination_room/all`,'')
    },
    generateSeat(parmes){      //  生成座位好
        return http.post(`/sys/order/generate/seat`,parmes)
    },
    reportAmount(parmes){      //  报表统计总数
        return http.post(`/sys/order/report_amount`,parmes)
    },
    reportPage(parmes){      //  报表列表
        return http.post(`/sys/order/report_page`,parmes)
    },
    orderUpdateGrade(parmes){      //  修改成绩
        return http.get(`sys/order/update/grade?id=${parmes.id}&grade=${parmes.grade}&pass=${parmes.pass}`,'')
    },
    statamount(id){      //  报名管理缴费总额
        return http.get(`/sys/order/stat/amount?type=${id}`,'')
    },
    gradeimport(parmes){      //  报表导入
        return http.post(`/sys/order/grade/import`,parmes)
    },
    sysDelayedAudit(parmes){      //  缓考审核
        return http.get(`/sys/delayed/audit?id=${parmes.id}&reason=${parmes.reason}&reject=${parmes.reject}`,'')
    },
    sigupPage2(params){           //报名管理列表2
        return http.post('/sys/order/page',params)
    },
    infoDateSeason(date){           //时间转换
        return http.get(`/info/date/season?date=${date}`,'')
    },
    infoAllSeason(parmes){           // 考期列表
        return http.get(`/info/all/season`,'')
    },
    orderUpdateGrade(parmes){      //  更改成绩
        return http.get(`/sys/order/update/grade?id=${parmes.id}&grade=${parmes.grade}&pass=${parmes.pass}`,'')
    },
}